package com.jzo2o.market.mapper;

import com.jzo2o.market.model.domain.Activity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.jzo2o.market.model.dto.request.ActivityQueryForPageReqDTO;
import com.jzo2o.market.model.dto.response.ActivityInfoResDTO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author itcast
 * @since 2023-09-16
 */
public interface ActivityMapper extends BaseMapper<Activity> {

    List<ActivityInfoResDTO> queryActivityList(@Param("dto") ActivityQueryForPageReqDTO activitySaveReqDTO);

    ActivityInfoResDTO getDetail(@Param("id") Long id);
}
